package com.cosw.sdkShanghaiCA;

/**
 * Created by zhanglinhua on 2017/8/11.
 */

public class SDKConstant {
    public static final byte[] CMD_SELECT_AID = {
        (byte) 0x00, (byte) 0xA4, (byte) 0x04, (byte) 0x00, (byte) 0x0E, (byte) 0xD1, (byte) 0x56,
        (byte) 0x00, (byte) 0x01, (byte) 0x01, (byte) 0x54, (byte) 0x68, (byte) 0x6D, (byte) 0xB5,
        (byte) 0x0A, (byte) 0x03, (byte) 0x00, (byte) 0x02, (byte) 0x14
    };

    public static final byte TAG_SUPER_USER = (byte) 0x00;
    public static final byte TAG_MANAGER = (byte) 0x01;
    public static final byte TAG_USER = (byte) 0x02; // 普通用户
    public static final byte TAG_SUPER_PWD = (byte) 0x03;
    public static final byte TAG_MANAGER_PWD = (byte) 0x04;
    public static final byte TAG_USER_PWD = (byte) 0x05;
    public static final byte TAG_PWD_REMAILS = (byte) 0x06;
    public static final byte TAG_MEDIUM_TYPE = (byte) 0x07;
    public static final byte TAG_PRODUCTOR_MEDIUM_INFO = (byte) 0x08; // 厂商介质信息
    public static final byte TAG_SERIALS_ID = (byte) 0x09; // 介质唯一序号;
    public static final byte TAG_SPACE_REMAIN = (byte) 0x0A; // 介质剩余空间
    public static final byte TAG_FILE_NAME = (byte) 0x0B; // 文件名称;
    public static final byte TAG_FILE_CONTENT = (byte) 0x0C; // 文件内容;

    public static final byte TAG_CONTAINER_NAME = (byte) 0xC0; // 容器名称
    public static final byte TAG_KEY_TYPE = (byte) 0xC1; // 密钥类型;
    public static final byte TAG_N = (byte) 0xC2; // N
    public static final byte TAG_E = (byte) 0xC3; // E
    public static final byte TAG_P = (byte) 0xC4; // P
    public static final byte TAG_Q = (byte) 0xC5; // Q
    public static final byte TAG_DP = (byte) 0xC6; // DP
    public static final byte TAG_DQ = (byte) 0xC7; // DQ
    public static final byte TAG_PQ = (byte) 0xC8; // PQ
    public static final byte TAG_X509_CERTIFICATION = (byte) 0xC9; // X509证书
    public static final byte TAG_ORIGINAL_TEXT = (byte) 0xCA; // 待加密数据（明文）或待签名数据
    public static final byte TAG_ENCRYPT_OR_SIGNNED_TEXT = (byte) 0xCB; // 密文或签名结果
    public static final byte TAG_DIGEST_ALG_TYPE = (byte) 0xCC; // 摘要算法类型
    public static final byte TAG_P12_PWD = (byte) 0xCD; // P12证书使用PIN;

    public static final byte TAG_INITIAL_IV = (byte)0xCE;  //初始向量;
    public static final byte TAG_SM4_KEY = (byte)0xCF;   //初始向量;
    public static final byte TAG_APP_NAME = (byte)0xD0;  //应用名称;
    public static final byte TAG_ADMIN_PIN_MAX_RETRY_TIME = (byte)0xD1;  //管理员pin最大尝试次数;
    public static final byte TAG_SSF33_KEY = (byte)0xD2;   //SSF33 key;
    public static final byte TAG_WRITE_FILE_CONTENT = (byte)0xD3;  //写入文件数据;
    public static final byte TAG_WRITE_FILE_OFFSET = (byte)0xD4;  //写入文件偏移;
    public static final byte TAG_CREATE_FILE_SIZE = (byte)0xD5;  //创建文件大小;
}
